import request from '@/utils/request'
export function fetchList() {
    return request({
        url: '/companyAddress/list',
        method: 'get'
    })
}
export function pageList(params) {
    return request({
        url: '/companyAddress/pageList',
        method: 'get',
        params: params
    })
}
export function add(data) {
    return request({
        url: '/companyAddress/create',
        method: 'post',
        data: data
    })
}
export function update(data) {
    return request({
        url: '/companyAddress/update',
        method: 'post',
        data: data
    })
}
export function del(id) {
    return request({
        url: '/companyAddress/delete/' + id,
        method: 'get',
    })
}